QT -= gui

CONFIG += c++11 console
CONFIG -= app_bundle

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += MinGW32

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += ./Application/UartProtocol   \
                Application/UartProtocol/CoolSquare \
                Application/UartProtocol/XinTao      \
                Application/StateMachine      \
                Application/Dev      \
                Common/CRC/            \
                Common/MiniRTOS/        \
                Common/TypeDefs/        \
                Common/ComFun/          \
                Common/Shell/           \
                Hardware/               \
                Test/

SOURCES += \
    main.cpp \
    Test/Debug.c \
    Hardware/Hardware.c \
    Common/MiniRTOS/Init.c \
    Common/MiniRTOS/List.c \
    Common/MiniRTOS/OS.c \
    Common/MiniRTOS/Queue.c \
    Common/MiniRTOS/Task.c \
    Common/MiniRTOS/Timer.c \
    Common/ComFun/ComFun.c \
    Common/CRC/CRC.c \
    Common/Shell/Cmds.c \
    Common/Shell/Shell.c \
    Application/UartProtocol/Allocator.c \
    Application/UartProtocol/UartFIFO.c \
    Application/UartProtocol/CoolSquare/Protoclo.c \
    Application/StateMachine/StateMachine.c \
    Application/Dev/DevInfor.c \
    Application/UartProtocol/XinTao/XTProtocol.c \
    Hardware/Hardware_Uart.c

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    Test/Debug.h \
    Test/test.h \
    Hardware/Hardware.h \
    Common/TypeDefs/Compiler.h \
    Common/TypeDefs/Constant.h \
    Common/TypeDefs/Macro.h \
    Common/TypeDefs/Typedefine.h \
    Common/MiniRTOS/Init.h \
    Common/MiniRTOS/List.h \
    Common/MiniRTOS/OS.h \
    Common/MiniRTOS/Queue.h \
    Common/MiniRTOS/Task.h \
    Common/MiniRTOS/Timer.h \
    Common/ComFun/ComFun.h \
    Common/CRC/CRC.h \
    Common/Shell/Cmds.h \
    Common/Shell/Shell.h \
    Application/UartProtocol/Allocator.h \
    Application/UartProtocol/UartFIFO.h \
    Application/UartProtocol/CoolSquare/Protocol.h \
    Application/StateMachine/StateMachine.h \
    Application/Dev/DevInfor.h \
    Application/UartProtocol/XinTao/XTProtocol.h \
    Hardware/Hardware_Uart.h
